package com.fuhan.mapper;

import com.fuhan.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @Author: Chao
 * @description:
 * @Date: 2021/1/26 20:30
 */
@Mapper
@Repository
public interface UserMapper {
    /**
     * 根据用户名和密码查找用户
     * @param username 登录名
     * @param password 密码
     * @return 买家信息
     */
    User getUser(@Param("username") String username, @Param("password") String password);
}
